package com.fastloan.mgt.customer.model;

import com.kawins.base.baseabs.BaseModel;
import com.kawins.spring.valid.annotation.IDCard;

import javax.persistence.*;

@Table(name = "ZY_CUSTOMER_CARD")
public class ZyCustomerCard extends BaseModel<String>{
    /**
     * 客户ID
     */
    @Id
    @Column(name = "CUSTOMER_ID")
    private String customerId;

    /**
     * 银行卡号
     */
    @Column(name = "CARD_NUM")
    private String cardNum;

    /**
     * 银行名称
     */
    @Transient
    private String issuer;

    /**
     * 卡片名称
     */
    @Transient
    private String cardName;

    /**
     * 卡类型
     */
    @Transient
    private String cardType;

    public ZyCustomerCard() {
    }

    public ZyCustomerCard(String customerId, String cardNum) {
        this.customerId = customerId;
        this.cardNum = cardNum;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getIssuer() {
        return issuer;
    }

    public void setIssuer(String issuer) {
        this.issuer = issuer;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    /**
     * 获取客户ID
     *
     * @return CUSTOMER_ID - 客户ID
     */
    public String getCustomerId() {
        return customerId;
    }

    /**
     * 设置客户ID
     *
     * @param customerId 客户ID
     */
    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    /**
     * 获取银行卡号
     *
     * @return CARD_NUM - 银行卡号
     */
    public String getCardNum() {
        return cardNum;
    }

    /**
     * 设置银行卡号
     *
     * @param cardNum 银行卡号
     */
    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }
}